package com.sakiko.home2.service.impl;

import com.sakiko.home2.dao.StudentDao;
import com.sakiko.home2.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.sql.SQLException;

@Service // id studentServiceImpl
// 纯 xml时可以 <bean id="接口(首字母小写)" class="实现类"  ("实现类" 换为 "本类" 在这里表述更恰当)
// 但注解默认: <bean id="实现类(首字母小写)" class="实现类"
public class StudentServiceImpl implements StudentService {

    @Autowired
    private StudentDao studentDao;

    @Override
    public void findList() throws SQLException {
        studentDao.queryAll();
    }
}
